project(mutester)

find_package(KDE4 REQUIRED)
include(KDE4Defaults)

add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
	${CMAKE_SOURCE_DIR}
	${CMAKE_BINARY_DIR}
	${KDE4_INCLUDES}
)

set(mutester_SRCS mutester.cpp
    mconfig.cpp
    mrunner.cpp
    mris.cpp
)

#set (PLUGINS_DIR /usr/lib/mutester_plugins)
#configure_file(def.h.in def.h)

kde4_add_ui_files(mutester_SRCS mconfig.ui)

kde4_add_plugin(plasma_applet_mutester ${mutester_SRCS})
target_link_libraries(plasma_applet_mutester
	${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})

install(TARGETS plasma_applet_mutester
DESTINATION ${PLUGIN_INSTALL_DIR})
			       
install(FILES plasma_applet_mutester.desktop
DESTINATION ${SERVICES_INSTALL_DIR})
